package com.market.domain.activity.model.aggregate;


import com.market.domain.activity.model.entity.ActivityOrderEntity;
import com.market.domain.activity.model.valobj.OrderStateVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

//下单聚合对象
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CreateQuotaOrderAggregate {

//    /**
//     * 活动账户实体
//     *事务使用
//     */
//    private ActivityAccountEntity activityAccountEntity;
    //不使用实体是因为，更改互动账户只更改部分字段，只需要记录需要字段即可

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 活动ID
     */
    private Long activityId;

    /**
     * 增加；总次数
     */
    private Integer totalCount;

    /**
     * 增加；日次数
     */
    private Integer dayCount;

    /**
     * 增加；月次数
     */
    private Integer monthCount;

    /**
     * 活动订单实体
     */
    private ActivityOrderEntity activityOrderEntity;

    //变更订单状态
    public void setOrderState(OrderStateVO orderState) {
        this.activityOrderEntity.setState(orderState);
    }

}
